import request from '@/utils/request'

export default {
  list: (url, pageParam) => request({
    url: url,
    method: 'Get',
    params: pageParam
  }),

  delete: (url, id) => request({
    url: url,
    method: 'Delete',
    params: id
  }),

  deleteBatch: (url, ids) => request({
    url: url,
    method: 'Delete',
    params: ids
  }),

  exportExcel: (url, params) => request({
    url: url,
    method: 'Get',
    params: params,
    responseType: 'blob'
  })
}
